/*    */ package com.qmsk.business.manage.community.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class CommunityDAO extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 27 */     return getGsonOfParams("selectSqlOfAll", params, nPageIdx, 
/* 28 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Long id) throws SQLException {
/* 32 */     Map params = new HashMap();
/* 33 */     MapUtils.addToMap(params, "id", id);
/* 34 */     return getGsonOfParams("selectSqlOfAll", params, false);
/*    */   }
/*    */ 
/*    */   public int updateNoteNum(Long communityId) throws SQLException {
/* 38 */     Map params = new HashMap();
/* 39 */     MapUtils.addToMap(params, "id", communityId);
/* 40 */     return update("updateNoteNum", params);
/*    */   }
/*    */ 
/*    */   public int updateNum(Long id) throws SQLException {
/* 44 */     Map params = new HashMap();
/* 45 */     MapUtils.addToMap(params, "id", id);
/* 46 */     return update("updateNum", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.manage.community.dao.CommunityDAO
 * JD-Core Version:    0.5.3
 */